import request from '@/utils/request'

// 用户登录
export const loginPost = (data) => {
  return request({
    url: '/login',
    method: 'post',
    data
  })
}

// 生成登录验证码
export const captchaTypeLogin = () => {
  return request({
    url: '/captcha?type=login'
  })
}

// 退出登录
export const logout = () => {
  return request({
    url: '/logout'
  })
}

// 获取用户信息
export const info = () => {
  return request({
    url: '/info'
  })
}
